package com.hzyb.oldpack.service.impl;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hzyb.oldpack.dao.JdbcDao;
import com.hzyb.oldpack.service.ShopOrderService;
@Service
public class ShopOrderServiceImpl implements ShopOrderService{

	@Resource
	private JdbcDao JdbcDao;
	
	
	@Override
	public List<Map<String, Object>> getAllOrderList(String openId) {
		//0待付款 1待发货 2待收货 3待评价 4再来一单（评价完）
		List<Map<String, Object>> list=JdbcDao.getAllOrderList(openId);
		for(Map<String, Object> map:list) {
			map.put("type",JdbcDao.getShopType(map.get("order_sid").toString()));
		}
		return list;
	}

}
